window.domLayerShare = {
    inited: false,
    createDom: function ( ) {
        if( this.inited ) return;
        this.inited = true;

        // this.img = new Image();
        // this.img.style.position = "absolute";
        // this.img.style.top = "0";
        // this.img.style.left = "0";
        // this.img.style.width = "0px";
        // this.img.style.height = "0px";
        // this.img.style.opacity = 0;
        // document.body.appendChild(this.img);

        // this.img.src = b64;

        // this.updateDom(0);
        console.log( "----domLayerShare, created" );
    },
    show(){
        if( !this.inited ) {
            return;
        }
        this.img.style.display = "";
    },
    hide(){
        if( !this.inited ) {
            return;
        }
        this.img.style.display = "none";
    },
    destroyDom: function () {
        if (this.img) {
            document.body.removeChild(this.img);
            this.img = null;
        }
        this.inited = false;
        console.log( "----domLayer, destroyed" );
    },
    updateDom: function (dt) {
        if (!this.inited) return;
    }
};